stage.set_axis(8)
stage.create_grid_overlay(1, 'black')
flake1 = codesters.Sprite("snowflake1", 5, 0)
flake1.set_size(.5)
flake2 = codesters.Sprite("snowflake2", 0, 6)
flake2.set_size(.5)
flake3 = codesters.Sprite("snowflake3", -7, 2)
flake3.set_size(.5)
penguin = codesters.Sprite("penguin", -7, -4)
penguin.set_size(.5)
hat = codesters.Sprite("fleecehat", 5, -6)
hat.turn_right(75)
hat.set_size(.5)
stage.set_background("winter")
sprite = codesters.Sprite("snowman")
sprite.set_size(.5)
sprite.pen_down()
sprite.glide_to(5, -6)
def collision(sprite, hit_sprite):
hit_sprite.hide()
# add any other actions...
sprite.event_collision(collision)
sprite.glide_to(5, 2)
sprite.glide_to(0, 6)
sprite.glide_to(-7, 2)
sprite.glide_to(-7, -6)
sprite.glide_to(0, 0)
tester = TestManager()
tester.display_success_message("Great job! Click submit and next to continue!")
-
Run Code
-
Activity Submitted!
Submit Work
-
Next Activity
-
-
Stop Running Code
-
Show Chart
-
Show Console
-
Reset Code Editor
-
Codesters How To (opens in a new tab)